package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.Data;

/**
 * projectName: com.atguigu.lease.common.exception
 *
 * @author: 赵伟风
 * description:
 */

@Data
public class LeaseException extends RuntimeException{

    private ResultCodeEnum resultCodeEnum;


    public LeaseException(String message) {
        super(message);
    }


    public LeaseException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.resultCodeEnum = resultCodeEnum;
    }
}
